package com.lin.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.lin.cms.criteria.ModelCriteria;
import com.lin.cms.domain.Model;

public interface ModelMapper{
	
	Model selectByPrimaryKey(Integer modelId);
	
	List<Model> selectByCriteria(ModelCriteria criteria);
	
	int deleteByPrimaryKey(Integer modelId);
	
	int deleteByCriteria(ModelCriteria criteria);
	
	int insert(Model model);
	
	int updateByPrimaryKeySelective(Model model);
	
	int updateByPrimaryKey(Model model);
	
	List<Model> selectByPage(ModelCriteria criteria,RowBounds bounds);
	 
	int countByCriteria(ModelCriteria criteria);
	
	public List<Model> getList(@Param("containDisabled") boolean containDisabled);
    
}
